package com.itheima.a05myobjectstream;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class ObjectStreamDemo3 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        //熟悉反序列化流

        ObjectInputStream ois=new ObjectInputStream(new FileInputStream("myio\\stu2.txt"));
        Object o = ois.readObject();
        ois.close();
        System.out.println(o);
    }
}
